Add some support for CEF-Style logging for A10 Thunder appliances. (#19 / #17) #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a dependency on https://github.com/DavidJBianco/pycef for parsing the CEF message, and does also require some changes to the syslog-ng config (which I'll submit as a separate PR to https://github.com/veesix-networks/cgn-ec)
One thing that's not quite handled correctly here yet is that A10 VRFs are named not numbered, and this is named as part of the
host
field in the syslog entry, so I'm overridingparse_message
to also give access to thehost_name
but this ends up being thrown away currently asvrf_id
is numeric-only in the database.I also don't yet implement all the possible event types, I only have
100/101/106/107
in my logs, so unsure how102/103/104/105
are presented. I assume at least 1 pair of these is forNAT Session Created/Deleted
.